package firstaid.main;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.ScrollView;

public class TrainingList extends Activity 
{
	private FirstAidManager manager;
	private LinearLayout FirstaidMenu;
	private ScrollView scroll;
	private Button b;
	
    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        Bundle extra = getIntent().getExtras();
        String value = extra.getString("case");
        manager = new FirstAidManager(this,FirstaidMenu);
        FirstaidMenu = new LinearLayout(this);
        scroll = new ScrollView(this);
        
        LinearLayout Hannes = manager.getInfo(value);
        Button b = new Button(this);
        b.setText("Til baka");
        Hannes.addView(b);
        scroll.addView(Hannes); 
        setContentView(scroll);
        
        OnClickListener ClickListener = new OnClickListener() 
        {
            public void onClick(View v) 
            {
            	finish();
            }
        };
        b.setOnClickListener(ClickListener);
    }

}
